<template>
	<view>
		<!-- <view class="page"> -->
		<view class="top" :style="`padding-top:` + $store.state.StatusBar.statusBar + `px`">
			<view class="top-icon" @click="to()">
				<u-icon name="arrow-left" size="42rpx" color='#fff'></u-icon>
			</view>
			<view class="top-title c-fff">{{ title }}</view>
		</view>
		<view class="body" :style="`margin-top:` + $store.state.StatusBar.statusBar + `px`">
			<view class="flex_r fa_c avatar" style="background-color: none;">
				<view class="avatar-img">
					<image class="img" :src="info.pic" mode="aspectFill"></image>
				</view>
				<view class="c-fff" style="margin-left:10rpx;">
					{{ info.nick }}
				</view>
			</view>
			<swiper  style=" width: 100%; height:600rpx; margin-top:50rpx;"  :easing-function="'easeInOutCubic'" >
				<swiper-item  v-for="(img,index2) in info.imageList">
					<!-- clss="img" mode="widthFix" class="radius-8" -->
					<image style="border-radius: 30rpx;" mode="aspectFill" clss="img radius-8" :src="img"></image>
				</swiper-item>
			</swiper>
			<view class="text_34 item c-fff" style="padding:20rpx;">
				{{ info.message }}
			</view>
		</view>
	</view>
</template>

<script>
import {
	to
} from '@/utils/index.js';
export default {
	data() {
		return {
			title: '',
			info: {}
		}
	},
	onLoad(option) { },
	onShow(option) {
		this.getInfo();
		this.title = '详情'
	},
	methods: {
		to,
		back() {
			to()
		},
		goUser() {
			to('/pages/m-pages/m-user-info/index?userid=' + this.info.userId)
		},
		async getInfo() {
			this.info = uni.getStorageSync("world-item")
		}
	}
}
</script>

<style scoped lang="scss">
.page {
	width: 100vw;
	height: 100vh;
	/* background: linear-gradient(#e3ecfb, #fdedf0, #fff, #fff); */
}

.top {
	position: fixed;
	top: 0rpx;
	width: 100%;
	// background-color: #e3ecfb;
	z-index: 999;
	text-align: center;
	vertical-align: middle;
	padding: 10rpx;
}

.top-icon {
	position: absolute;
	left: 30rpx;
	z-index: 99;
	width: 30rpx;
	height: 30rpx;
}

.top-title {
	line-height: 50rpx;
	display: block;
	height: 50rpx;
	z-index: 99;
}

.body {
	padding: 20rpx;
	padding-top: 80rpx;

	.avatar {
		.avatar-img {
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
			overflow: hidden;
		}
	}

	.item {
		margin-top: 10rpx;
	}
}

.button {
	background-color: #ff301e;
	color: #fff;
	height: 60rpx;
	padding: 20rpx;
	font-size: 38rpx;
	line-height: 60rpx;
	width: 100%;
	margin: 0 auto;
	text-align: center;
	position: absolute;
	bottom: 0rpx;
	transform: translateY(-20rpx);
}
</style>